import { TW_PASS_LIST_SLIDE,TW_GET_VISA_CATEGORY,TW_GET_PROVINCE_LIST,TW_GET_DEFAULT_ADDRESS} from "../actions/actionsTypes"

export default function twHomeReducer(state = {}, action) {
	switch (action.type) {
		case TW_PASS_LIST_SLIDE:
			return Object.assign({}, state, {twPassList: action.data});
		case TW_GET_VISA_CATEGORY:
			return Object.assign({}, state, {twVisaList: action.data});
		case TW_GET_PROVINCE_LIST:
			return Object.assign({}, state, {twProvinceList: action.data});
		case TW_GET_DEFAULT_ADDRESS:
			return Object.assign({}, state, {twDefaultAddress: action.data});
		default:
			return state;
	}
}
